{extend name='layui/base'/}

{block name="style"}
<style>

</style>
{/block}
{block name="main"}
<div class="layui-main">
    <input id="abc" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
</div>
{/block}

{block name="js_extension"}
<script>
    function click() {
        laydate();
    }
</script>
{/block}